function [similarDiffSum, MiMi] = b1SetSimilarityMeasure(vol)
%b1SetSimilarityMeasure Calculates how similar sets of volumes are to each
%other.
%
%   Detailed explanation goes here

    for ii=1:6
        for jj=1:6
            for kk=1:length(vol)
                  superVol{kk}=vol{kk}{ii,jj};
            end

            similarDiff=triang_similarity_diff(superVol);
            similarDiffSum(ii,jj)=sum(sum(similarDiff));
            
            % Mutual information
            C=0;
            for kk=1:3
                for ll=kk+1:4
                    C=C+1;
                    MiMi(ii,jj,C)=mi(vol{kk}{ii,jj},vol{ll}{ii,jj});
                end
            end
            
        end
    end

end

